package day07;

public class txt6 {
    public static void main(String[] args) {
        int a = GGG(3.6);
        System.out.println(a);
    }

    static int GGG(double num) {
        int numten = (int) (num * 10);
        if (numten % 10 >= 5) {
            return (int) num + 1;
        } else {
            return (int) num;
        }
    }
}
